package example;

import java.io.IOException;

import java.util.regex.Matcher;

import java.util.regex.Pattern;

public class ClassPathResource {

	public static boolean isMobileNO(String mobiles) {

		Pattern p = Pattern.compile("^((13[0-9])|(14[5,7,9])(15[^4,\\D])|(18[0,5-9])|(17[0,1,3,5-8]))\\d{8}$");

		Matcher m = p.matcher(mobiles);

		System.out.println(m.matches() + "---");

		return m.matches();
	}

	public static void main(String[] args) throws IOException {

		System.out.println(ClassPathResource.isMobileNO("13253332379"));

	}

}